package com.example.design_pattern.factory;

import com.example.design_pattern.domain.Banana;
import com.example.design_pattern.domain.Fruit;

public class BananaFactory implements FruitFactory {

    /**
     * 生产水果
     */
    @Override
    public Fruit createFruit() {
        return new Banana();
    }

}
